package com.wg.msorderds.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Product implements Serializable {

    @Schema(description = "商品编号")
    private Integer id;

    @Schema(description = "店铺ID")
    private Integer shopId;

    @Schema(description = "商品名称")
    private String name;

    // 移除 mainImg 字段，因为 JSON 中没有这个字段

    @Schema(description = "商品参考价")
    private Double priceBefore;

    @Schema(description = "商品现价")
    private Double priceAfter;

    @Schema(description = "商品状态")
    private String status;

    @Schema(description = "创建时间")
    private String createTime;

    @Schema(description = "商品类型")
    private String type;

    @Schema(description = "图文详细文字")
    private String text;

    @Schema(description = "图文详细图")
    private List<String> img;  // 修改为 List<String> 以匹配 JSON 数组

    @Schema(description = "已售数量")
    private Integer buyEd;

    @Schema(description = "库存数量")
    private Integer count;
}
